using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace hondaab.portal.menu_dir
{
    public partial class chekers : System.Web.UI.UserControl
    {


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                List<categoriasarticulos> lista = new List<categoriasarticulos>();
                lista = categoriasarticulos.getList();
                RepeaterChekers.DataSource = lista;
                RepeaterChekers.DataBind();

            }
            foreach (RepeaterItem i in RepeaterChekers.Controls)
            { 
                CheckBox chk1 = (CheckBox) i.FindControl("chk");
                string id="";
                if (chk1.Checked)
                {
                    id = chk1.Text;
                    //algo pasa 
                }
            }
        }
 
        protected void RepeaterChekers_ItemCommand(object sender, RepeaterCommandEventArgs e)
        {
         //   CheckBox bot1 = (CheckBox)thisFindControl(camp.idcolores.ToString());
            string id = sf.cadena(e);
         //   string accion = e.CommandName.ToString();
        }
    }
}